<!DOCTYPE html>



  


<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">
<script>
    (function(){
        if(''){
            if (prompt('请输入文章密码') !== ''){
                alert('密码错误！');
                history.back();
            }
        }
    })();
</script>








<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT" />










<meta name="description" content="从Winamp到SDL_mixer的更新进程">
<meta property="og:type" content="article">
<meta property="og:title" content="MUGEN-音乐插件">
<meta property="og:url" content="https://kfm.ink/cjold6x990006hlb7i0zjv4n4/index.html">
<meta property="og:site_name" content="白绝">
<meta property="og:description" content="从Winamp到SDL_mixer的更新进程">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2018-11-17T10:53:42.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="MUGEN-音乐插件">
<meta name="twitter:description" content="从Winamp到SDL_mixer的更新进程">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Muse',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://kfm.ink/cjold6x990006hlb7i0zjv4n4/"/>





  <title>MUGEN-音乐插件 | 白绝</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">白绝</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">WhiteJue</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://kfm.ink/cjold6x990006hlb7i0zjv4n4/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="白绝">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="白绝">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">MUGEN-音乐插件</h1>
        

        <div class="post-meta">
          
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2018-11-17T18:30:44+08:00">
                2018-11-17
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/cjold6x990006hlb7i0zjv4n4/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count valine-comment-count" data-xid="/cjold6x990006hlb7i0zjv4n4/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>从Winamp到SDL_mixer的更新进程<br><a id="more"></a></p>
<h3 id="Win"><a href="#Win" class="headerlink" title="Win"></a>Win</h3><p>Win版主程序使用的是当年正值巅峰时期的Winamp，随着Windows95的问世，个人计算机开始了向多媒体的发展，并且MP3文件开始流传，而Winamp则是当时的MP3黄金搭档，它不仅在当时占用资源极低，而且音质极佳，成为了当时必备的装机软件<br>官方的Win版主程序已经默认自带一个in_mad.dll插件，这个插件可以使主程序播放MP3，MP2，MPG等格式的音乐文件，今天就来说说怎么安装Winamp插件到Win版主程序中以支持更丰富的音乐格式<br>安装插件，就要准备插件，而Winamp的插件极其丰富，拥有支持大部分音乐格式的DLL，我已经整理好了<br>下载地址：<a href="https://pan.baidu.com/s/1i46rnDj" target="_blank" rel="noopener">InPlugin</a>，里面的插件列表如下：<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">DJ-VAN.dll</span><br><span class="line">in_adx.dll</span><br><span class="line">in_ape.dll</span><br><span class="line">in_cube.dll</span><br><span class="line">in_mad.dll</span><br><span class="line">in_mad150b.dll</span><br><span class="line">IN_MP3.DLL</span><br><span class="line">in_mp30.dll</span><br><span class="line">IN_MP31.DLL</span><br><span class="line">in_mp3pro.dll</span><br><span class="line">in_psf.dll</span><br><span class="line">in_qsf.dll</span><br><span class="line">in_snes.dll</span><br><span class="line">in_vorbis.dll</span><br><span class="line">in_ym.dll</span><br><span class="line">libMAD.dll</span><br></pre></td></tr></table></figure>各个插件支持的音乐格式可参考文件名，这里以in_vorbis.dll为例，OggVorbis是类似于MP3的音频压缩格式，完全免费，完全开发，没有专利限制，并且支持多声道，扩展名为.ogg<br>添加音乐插件，则需要在mugen.cfg文件中声明（位于data目录下），用记事本打开，并转到”Sound Win“节<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line">[Sound Win]</span><br><span class="line">Sound =1 </span><br><span class="line">StereoEffects = 1</span><br><span class="line">PanningWidth = 240</span><br><span class="line">ReverseStereo = 0</span><br><span class="line">WavDevice = Auto</span><br><span class="line">WavChannels = 12</span><br><span class="line">ModVoices = 6</span><br><span class="line">MidiDevice = Auto</span><br><span class="line">MasterWavVolume = 255</span><br><span class="line">WavVolume = 128</span><br><span class="line">MidiVolume = 192</span><br><span class="line">MP3Volume = 135</span><br><span class="line">ModVolume = 80</span><br><span class="line">CDAVolume = -1</span><br><span class="line">PlayMIDI = 1</span><br><span class="line">PlayMP3 = 1     </span><br><span class="line">PlayMOD = 1</span><br><span class="line">PlayCDA = 1</span><br><span class="line">CDADevice =</span><br><span class="line">PauseBGMOnDefocus = 1</span><br><span class="line">plugin = data/in_mad.dll, mp3, mp2, mpg</span><br></pre></td></tr></table></figure>关于各个项的意思，可以参考千寻的翻译，这里只看最后一行，即插件声明的格式<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">;plugin=dllname.dll, file ex1, file ex2, ...</span><br><span class="line">;其中dllname.dll就是插件的位置，支持相对路径，默认目录是根目录，而file ex则为需要用此插件的音乐文件扩展名</span><br><span class="line">;将in_vorbis.dll放进data目录下（也可完全按自己喜好），并在下面再添加一个plugin</span><br><span class="line">plugin = data/in_mad.dll, mp3, mp2, mpg</span><br><span class="line">plugin = data/in_vorbis.dll, ogg</span><br><span class="line">;如果你的插件不放在data，请按自己的路径修改，之后确保文件和路径没有错误，后面的扩展名填写ogg，表示遇到ogg格式的文件时使用此插件，然后mugen就支持播放ogg了</span><br><span class="line">;其他插件的方法大同小异</span><br></pre></td></tr></table></figure>需要注意的是，随着时代的变迁，一代天骄Winamp也早已陨落成为上个世纪的历史，目前使用Winamp可能会导致一系列问题。</p>
<h3 id="1-X"><a href="#1-X" class="headerlink" title="1.X"></a>1.X</h3><p>2011年，mugen1.0正式发布，作为新版的主程序，其稳定性大幅增加，并且摈弃了在当时已经没落的Winamp，而是使用了SDL_mixer，到mugen1.1beta1仍在使用<br>SDL_mixer是一个开源的音乐播放库，相对于Winamp，它更稳定，并且支持灵活的循环点以及控制，在1.x的主程序中，都内置了一个mpg123插件（支持播放mp3等格式），依旧是mugen.cfg，不过是“Music”节<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">[Music]</span><br><span class="line">plugin = mpg123</span><br><span class="line">rva = track</span><br><span class="line">extensions =</span><br><span class="line">volume = 100.0</span><br><span class="line"></span><br><span class="line">plugin = vorbisplug, plugins/vorbisplug.dll</span><br><span class="line">rva = track</span><br><span class="line">extensions = </span><br><span class="line">volume = 100.0</span><br><span class="line"></span><br><span class="line">plugin = sdlmix</span><br><span class="line">midivolume =</span><br><span class="line">modvolume = </span><br></pre></td></tr></table></figure>插件的声明格式如下：<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">plugin = </span><br><span class="line">rva = </span><br><span class="line">extensions = </span><br><span class="line">volume = </span><br><span class="line">;其中plugin为插件名，而内置的mpg123插件则填写`mpg123`即可</span><br><span class="line">;rva为ReplayGain的调节，可以填写**off**， **track** ，**album**</span><br><span class="line">;volume是总体音量，默认填写100，百分比计算</span><br><span class="line">;extensions则指定插件支持的扩展名，如果留空则根据插件判断</span><br><span class="line">;内置的mpg123还有一个专用参数，decoder，指定解码方式，可填写`SSE, 3DNowExt, 3DNow, MMX, i586, i586_dither, i386, generic`，一般不指定</span><br><span class="line">;除了官方的内置插件，MUGEN还提供了两个外置插件，分别是vorbisplug.dll和waveplug.dll，前者支持ogg，后者支持微软的wav，添加的方式看上面贴出的代码</span><br></pre></td></tr></table></figure><br>关于音乐循环点的官方解释：<a href="http://www.elecbyte.com/mugendocs/loopguide.html" target="_blank" rel="noopener">loopguide</a></p>

      
    </div>
    
    
    
    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/cjold6xih0009hlb7vg23ycnz/" rel="next" title="MUGEN—SFF文件格式">
                <i class="fa fa-chevron-left"></i> MUGEN—SFF文件格式
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
    </div>
  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">白绝</p>
              <p class="site-description motion-element" itemprop="description">白绝的个人博客</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">13</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#Win"><span class="nav-number">1.</span> <span class="nav-text">Win</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#1-X"><span class="nav-number">2.</span> <span class="nav-text">1.X</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2018</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">白绝</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Muse</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  










  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src="//unpkg.com/valine/dist/Valine.min.js"></script>
  
  <script type="text/javascript">
    var GUEST = ['nick','mail','link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item=>{
      return GUEST.indexOf(item)>-1;
    });
    new Valine({
        el: '#comments' ,
        verify: false,
        notify: false,
        appId: '4igPJ1aughhjJwJTvNXdofSx-gzGzoHsz',
        appKey: 'Hh4A6qHvsCaIjGuyi9kKCqKI',
        placeholder: '你的邮箱将严格保密！',
        avatar:'mm',
        guest_info:guest,
        pageSize:'10' || 10,
    });
  </script>



  





  

  

  

  
  

  

  

  

</body>
</html>
